const TT_TOKEN = 'TT_TOKEN'

export function setToken (token) {
  localStorage.setItem(TT_TOKEN, JSON.stringify(token))
}

export function getToken () {
  return JSON.parse(localStorage.getItem(TT_TOKEN))
}

export function removeToken () {
  localStorage.removeItem(TT_TOKEN)
}
